﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MvcAtletIS.Models
{
    [MetadataType(typeof(LinksCategorieMetadata))]
    public partial class LinksCategories
    {
    }

    public class LinksCategorieMetadata
    {
        [DisplayName("Názov")]
        [Required(ErrorMessage = "Názov je povinný údaj.")]
        public string Name { get; set; }

        [DisplayName("Poradie")]
        [Required(ErrorMessage = "Poradie je povinný údaj.")]
        public int Order { get; set; }

        [DisplayName("Aktívna")]
        [DefaultValue(true)]
        public bool Active { get; set; }
    }
}